import { createApp } from 'vue'
import App from './App.vue'
import Antd from 'ant-design-vue';
import ElementPlus from 'element-plus'
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/dist/index.css'
import router from './route/router'

//引入pinia
import pinia from './store'
const app = createApp(App)
// @ts-ignore
import vueHljs from "vue-hljs";
import "vue-hljs/dist/vue-hljs.min.css";


import * as ElementPlusIconsVue from '@element-plus/icons-vue'


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(ElementPlus, {
	locale: zhCn,
});

app.use(pinia)
app.use(router)
app.use(Antd)

app.use(vueHljs)







app.mount('#app')

export default app


